{%assign rendered 0%}
{%is TCandyItem%}
	{%if Image%}
		{%with Image%}
		<a class="imageloader" title="{% i < element %}" href="{% q < GetLink %}"><img src="{% q < GetThumbnailLink %}" height="40" /></a>
		{%endwith%}
		{%assign rendered 1%}
	{%endif%}
{%endis%}
{%ifnot rendered %}						
	<div class="collection-value"><a href="<?php echo $this->PAGE->CollectionItemUrl($this->element,$this->_container_); ?>">{% element %}</a></div>
{%endif%}